import Vue from 'vue'
import Cookies from 'js-cookie'
import Element, { Message, MessageBox } from 'element-ui'
import '../element-variables.scss'

// import '../assets/theme/index.css'

// 权限指令
import permission from '@/common/Permission/index.js'

// 引入公共自定义插件
import TimePicker from '@/common/timepicker/index.js'
import playCalendar from '@/common/calendar/index.js'

Vue.use(Element, {
  size: Cookies.get('size') || 'small' // set element-ui default size
})

Vue.use(TimePicker)
Vue.use(playCalendar)

// 引入指令权限
Vue.use(permission)

// elementui 组件引入
Vue.prototype.$message = Message
Vue.prototype.$confirm = MessageBox.confirm
